/** @format */

// 本地存储管理token

// 本地存储token的键名
const TOKEN_KEY = 'BIT_TOKEN_KEY'

// 存
export const setToken = (token) => {
	localStorage.setItem(TOKEN_KEY, token)
}

// 取
export const getToken = () => {
	return localStorage.getItem(TOKEN_KEY)
}

// 删
export const removeToken = () => {
	localStorage.removeItem(TOKEN_KEY)
}
